<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>一客一码</title>
	<link rel="stylesheet" href="/layui/css/layui.css">
	<link rel="stylesheet" href="/hyqcss/public.css">
	<style type="text/css">
		body{
			background: #e9e9e9;
		}
		/*公共头部带搜索*/
		.public_container{
			margin: 20px;
			background: #fff;
		}
		.public_title_container{
			height: 54px;
			padding: 0 20px;
			font-size: 14px;
			display: flex;
			align-items: center;
			background: #f9f9f9;
			border-bottom: 1px solid #f0f0f0;
		}
		.public_title_container a{
			margin-right: 30px;
			height: 54px;
			line-height: 54px;
			cursor: pointer;
		}
		.public_title_active{
			color: #1E9FFF;
			border-bottom: 1px solid #1E9FFF;
		}
		.public_buttonSearch_container{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 20px;
			background: #fff;
		}
		.public_buttonSearch_container img{
			width: 25px;
			height: 25px;
		}
		.public_Search_container{
			position: relative;
		}
		.public_Search_container input{
			width: 240px;
			height: 32px;
			border: 1px solid #d9d9d9;
		}
		.public_Search_container i{
			position: absolute;
			bottom: 6px;
			right: 10px;
			cursor: pointer;
		}
		/*公共头部带搜索 end*/
		.public_Search_content{
			display: flex;
		}
		.public_SearchSelect_content input{
			height: 32px;
		}
		.public_SearchSelect_content{
			margin-right: 10px;
		}
		.public_buttonSearch_content{
			display: flex;
		}
		.public_buttonSearch_content a{
			color: #fff;
			background-color: #1E9FFF;
			text-shadow: 0 -1px 0 rgba(0,0,0,.12);
			height: 24px;
			padding: 4px 15px;
			font-size: 14px;
			border-radius: 2px;
			display: flex;
			align-items: center;
		}
		.public_buttonSearch_content span{
			color: rgba(0,0,0,0.65);
			background-color: #fff;
			height: 32px;
			padding: 4px 15px;
			font-size: 14px;
			border-radius: 2px;
			display: flex;
			align-items: center;
			border: 1px solid #d9d9d9;
			margin-left: 10px;
		}
		
	</style>
</head>
<body>
	<form class="layui-form">
		<!-- 顶部提示框 开始 -->
		<div class="public_tipSetting_contaienr">
			<div class="public_tipSetting_content">
				<p>一客一码功能可以在企业微信PC侧边栏（或手机聊天工具栏）打开,本功能可以为每个客户生成一个专属二维码，并记录邀请来的新客户情况，配合奖励，效果更佳。</p>
				<svg t="1599462804099" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8813" width="15" height="15"><path d="M512 102.4a409.6 409.6 0 1 0 409.6 409.6 409.6 409.6 0 0 0-409.6-409.6z m181.248 518.144a51.2 51.2 0 0 1-72.704 72.704L512 584.192l-108.544 109.056a51.2 51.2 0 0 1-72.704-72.704L439.808 512 330.752 403.456a51.2 51.2 0 0 1 72.704-72.704L512 439.808l108.544-109.056a51.2 51.2 0 0 1 72.704 72.704L584.192 512z" fill="" p-id="8814"></path></svg>
			</div>
		</div>
		<!-- 顶部提示框 结束 -->
	<div class="public_container">
		<!-- /*公共头部带搜索*/ -->
		<div class="public_content">
			<div class="public_title_container">
				<a href="qrcode_list.html" class="public_title_active">数据统计</a>
				<a href="index.html" >一客一码</a>
			</div>
			<div class="public_buttonSearch_container">
				<table class="layui-table" >
				    <thead>
				      <tr>
				        <th>客户码</th>
				        <th>用户头像</th>
				        <th>用户名称</th>
				        <th>员工头像</th>
				        <th>员工名称</th>
				        <th>创建时间</th>
				        <th>操作</th>
				      </tr>
				    </thead>
				    <tbody>
					{loop $lists as $list}
					<tr>
				        <td><img src="{$list['qr_code']}"></td>
				        <td><img src="{$list['user']['avatar']}"></td>
				        <td>{$list["user"]["name"]}</td>
				        <td><img src="{$list['qy_user']['avatar']}"></td>
				        <td>{$list["qy_user"]["name"]}</td>
				        <td>{date("Y-m-d H:i:s",$list['ctime'])}</td>
				        <td>
				        	<a class="table-public-btn" href="details.html?id={$list['id']}">邀请详情</a>
				        </td>
				      </tr>
					{/loop}
				      
				    </tbody>
				</table>
			</div>
			<div class="main-container-h pageing-container-h">
            	<div class="pageing-content-h">
             	 	<span>{$p->totalnum}条/{$p->totalpage}页</span>
            	</div>
            	<ul class="pageing-content-h">{P weidogsadmin}</ul>
          	</div>
		</div>
		
		<!-- /*公共头部带搜索*/ end -->
	</div>
	</form>
	<script src="/cdn/jquery.js"></script>
	<script src="/layui/layui.js"></script>
	<script src="/js/ajax.js"></script>
	<script type="text/javascript">
		$('.public_tipSetting_contaienr svg').click(function(){
			$('.public_tipSetting_contaienr').hide();
		})
		layui.use('form', function(){
		  var form = layui.form;
		  	
		  //监听提交
		  form.on('submit(formDemo)', function(data){
		    layer.msg(JSON.stringify(data.field));
		    return false;
		  });
		  form.render('select');
		  
		  form.on('select(type)', function(data){
			location.href="quick_reply.html?type="+data.value+"&name="+$('#name').val();
		  });
		});
	</script>
	<script type="text/javascript">
		// function details(id){
		// 	myAjaxPost(false, true, 'details.html', { id:id}, function (resp) {

		// 	})
		// }
	</script>
</body>
</html>